//
//  SYRequestAPI+TongYong.m
//  SanYiTeaching
//
//  Created by 李文强 on 2019/5/24.
//  Copyright © 2019 SanYi. All rights reserved.
//

#define TEACH_CampusTutorTeacherList_URL @"common/CommonService.svc/CampusTutorTeacherList"

#define TEACH_LessonResource_URL @"common/CommonService.svc/LessonResource"

#define NOTICE_GetStudentOrderChangeInfo_URL @"notice/NoticeReceiveService.svc/GetStudentOrderChangeInfo"
#define NOTICE_GetStudentOrderChangeDetailInfo_URL @"notice/NoticeReceiveService.svc/GetStudentOrderChangeDetailInfo"
#import "SYRequestAPI+TongYong.h"

@implementation SYRequestAPI (TongYong)
+ (void)sy_getCommonServiceCampusTutorTeacherList:(NSDictionary *)parama success:(void(^)(id responseObject))success fail:(FailBlock)fail{
    [SYRequestAPI postDataFromURLScheme:TEACH_CampusTutorTeacherList_URL parameterDictionary:parama success:^(id responseObject) {
        success(responseObject);
    } fail:^(NSError *error) {
        NSLog(@"通用-分校助教-失败 %@",error);
        if (fail) {
            fail(error);
        }
    }];
}

+ (void)sy_getCommonServiceLessonResource:(NSDictionary *)parama success:(void(^)(id responseObject))success fail:(FailBlock)fail{
    [SYRequestAPI postDataFromURLScheme:TEACH_LessonResource_URL parameterDictionary:parama success:^(id responseObject) {
        success(responseObject);
    } fail:^(NSError *error) {
        NSLog(@"通用-课时资源-失败 %@",error);
        if (fail) {
            fail(error);
        }
    }];
}
+ (void)sy_getNoticeReceiveServiceNoticeReceiveService:(NSDictionary *)parama success:(void(^)(id responseObject))success fail:(FailBlock)fail{
    [SYRequestAPI postDataFromURLScheme:NOTICE_GetStudentOrderChangeInfo_URL parameterDictionary:parama success:^(id responseObject) {
        success(responseObject);
    } fail:^(NSError *error) {
        NSLog(@"排名异常-失败 %@",error);
        if (fail) {
            fail(error);
        }
    }];
}
+ (void)sy_getNoticeReceiveServiceGetStudentOrderChangeDetailInfo:(NSDictionary *)parama success:(void(^)(id responseObject))success fail:(FailBlock)fail{
    [SYRequestAPI postDataFromURLScheme:NOTICE_GetStudentOrderChangeDetailInfo_URL parameterDictionary:parama success:^(id responseObject) {
        success(responseObject);
    } fail:^(NSError *error) {
        NSLog(@"排名异常明细-失败 %@",error);
        if (fail) {
            fail(error);
        }
    }];
}
@end
